Skip to content

hotfix: remove opportunity status_match column from migration#424

Draft
nadavosa wants to merge 1 commit intodevelopfrom
hotfix/remove-opp-status-match-column
Draft

hotfix: remove opportunity status_match column from migration#424
nadavosa wants to merge 1 commit intodevelopfrom
hotfix/remove-opp-status-match-column

Conversation

@nadavosa
Copy link
Copy Markdown
Collaborator

Summary

  • Removes ALTER TABLE public.opportunity ADD COLUMN status_match from migration 1777383134500 — the column was added with the wrong enum type (volunteer_status_match_enum instead of an opportunity-specific enum) and bypassed the TypeORM entity/DTO layer entirely
  • Removes the opportunity.status_match recalculation UPDATE from the data migration 1777384229791 — it references the column that no longer exists
  • statusMatch on the opportunity entity needs to be properly implemented through the TypeORM entity, DTO, and schema layer with the correct enum type

Test plan

  • BE container starts cleanly after deploy
  • Staging responds after redeploy

🤖 Generated with Claude Code

Adding status_match to the opportunity table via raw SQL bypassed the
TypeORM entity/DTO layer and used the wrong enum type (volunteer_status_match_enum
instead of an opportunity-specific enum). Removed the ALTER TABLE ADD COLUMN
and the opportunity status_match recalculation UPDATE from the data migration.
This needs to be implemented properly through the entity and DTO layer.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nadavosa nadavosa marked this pull request as draft April 29, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant